

import sys
import json
import subprocess

if __name__ == 'main':
    proc_args = ['F:\\DockerRepo\\TestProject\\cPath\\plat\\window\\test.exe', 'fdafa', '1231245']

    proc = subprocess.Popen(proc_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = proc.communicate()
    print("Out... ")
    print(out)
    # 当没有输出管道时，编译或运行错误在这个位置。
    if err:
        raise ValueError("Error occurred while calling judger: {}".format(err))
    #return json.loads(out.decode("utf-8"))